<!--<a href='--><?php //e_action("labelAdd");?><!--'>添加标签</a><br/><br/>-->
<script src="plugin/jquery-1.11.2.min.js"></script>
<form action="<?php e_page("member","checkMember");?>" method="get">
    <fieldset>
        <legend></legend>
        <label for="phone">用户名(手机)</label><br/>
        <input type="text" name="phone" id="phone" placeholder="请输入要搜索的用户手机号"/><br/>
        <label for="name">用户姓名</label><br/>
        <input type="text" name="name" id="name" placeholder="请输入要搜索的用户姓名">
        
        <br/>
        <style>
            fieldset select {
height: 25px;
line-height: 14px;
width: 100px;
display: inline-block;
 margin: 6px 0; 

}
        </style>
        <script>
      $(function(){      
           $("#selProvinces2").change(function(){
                var parent=$(this).val();
       $.ajax({
        url: '../admin/member/ajaxurl/',
        type: 'POST',
        data:  {parent: parent ,type:2 },
        dataType: 'json',
        success:function(str){
          $("#selCities2").html(str);
        },
        error:function(){
            alert('获取用户信息失败，请尝试刷新');
        }
    }) 
    })
    
        $("#selCities2").change(function(){
                var parent=$(this).val();
       $.ajax({
        url: '../admin/member/ajaxurl/',
        type: 'POST',
        data:  {parent: parent ,type:3 },
        dataType: 'json',
        success:function(str){
          $("#selDistricts2").html(str);
        },
        error:function(){
            alert('获取用户信息失败，请尝试刷新');
        }
    }) 
    })
 })
        </script>
        <select name="province" id="selProvinces2">
                        <option value="0">请选择省</option>
                        <?php  foreach($r['province_list'] as $k=>$region){?>
                        <option value="<?php echo $region['region_id']; ?>"><?php echo $region['region_name']; ?></option>
                        <?php } ?>
        </select>
                            
                            <select name="city" id="selCities2">
                        <option value="0">请选择市</option>
                      </select>
                            
                            <select name="district" id="selDistricts2" >
                        <option value="0">请选择区</option>
                     
                            </select>
        
        <br>
        <input type="submit" value="搜索"><br/>
    </fieldset>
</form>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>手机/用户名</th>
        <th>邮箱</th>
        <th>用户类型</th>
        <th>冻结/通过</th>
        <th>查看详情</th>
        <th>查看交易明细</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['member'] as $v){?>
        <tr>
            <td><?php echo $v['id']?></td>
            <td><?php echo $v['username']?></td>
            <td><?php echo $v['email']?></td>
            <td><?php foreach($r['userType'] as $k=>$g){?>
                    <?php if($v['type']==$k)echo $g;?>
                <?php }?></td>
            <td><?php if($v['enable']==1){?>  <?php echo "未冻结/";}else{?>  <a href="<?php e_action("checkPass","id={$v['id']}&enable={$r['enable']}")?>">已冻结</a> <?php }?>   <?php if($v['enable']==1){?>    <a href="<?php e_action("checkCancel","id={$v['id']}&enable={$r['enable']}")?>">冻结</a><?php }?></td>
            <td><a href='<?php e_action("memberDetail","id={$v['id']}");?>'>查看详情</a></td>
            <td><a href='<?php e_action("tradeDetail","user_id={$v['id']}")?>'>查看交易明细</a></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<?php
/** @var Page $page */
$page=$r['pages'];
?>
<?php echo $page->getPageHtml(); ?>
